﻿using XLZF.MicroServices.Models;

namespace XLZF.MicroServices.IRepository;

public interface IClothingPartsRepository
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="Clothing_Parts"></param>
    /// <returns></returns>
    Task<int> AddClothingBrand(Clothing_Parts Clothing_Parts);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="Clothing_Parts"></param>
    /// <returns></returns>
    int DelClothingBrand(Clothing_Parts Clothing_Parts);

    /// <summary>
    /// 改
    /// </summary>
    /// <param name="Clothing_Parts"></param>
    /// <returns></returns>
    int EditClothingBrand(Clothing_Parts Clothing_Parts);

    /// <summary>
    /// 查
    /// </summary>
    /// <returns></returns>
    List<Clothing_Parts> GetClothingBrand();

    /// <summary>
    /// 查
    /// </summary>
    /// <param name="BrandID"></param>
    /// <returns></returns>
    Clothing_Parts GetClothingBrandSing(string BrandID);

    /// <summary>
    /// 条件查询
    /// </summary>
    /// <param name="name">姓名</param>
    /// <param name="isAsc">是否正序</param>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页大小</param>
    /// <returns></returns>
    Page<Clothing_Parts> GetClothingPageData(string name, bool isAsc, int pageIndex, int pageSize);
}
